package com.niiwoo.civet.account.dao.mapper;


import com.niiwoo.civet.account.dao.entity.BatchTransOrderDetail;
import com.niiwoo.civet.account.dto.common.RefundResultDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BatchTransOrderDetailMapperExt extends BatchTransOrderDetailMapper{
    BatchTransOrderDetail selectByDetailRequestNo(String detailRequestNo);
    List<BatchTransOrderDetail> selectByDetailRequestNoList(@Param("list") List<String> detailRequestNoList);
    List<BatchTransOrderDetail> selectByDetailByBatchNo(@Param("batchNo") String batchNo);
    Integer countSuccessAndHandingNum(@Param("batchNo") String batchNo);
    List<BatchTransOrderDetail> selectByDetailByBatchNoNotSuccess(@Param("batchNo") String batchNo);
    List<BatchTransOrderDetail> selectByDetailByBatchNos(@Param("list") List<String> batchNos);
    List<BatchTransOrderDetail> selectByDetailAllByBatchNo(@Param("batchNo") String batchNo);



    Integer countProjectNotSuccess(@Param("projectId") Long projectId,@Param("batchRequestNo")String batchRequestNo);

    Integer countProjectNotSuccessByBatchNo(@Param("batchRequestNo")String batchRequestNo);
    Integer countNumsByBatchNo(@Param("batchRequestNo")String batchRequestNo);


    List<BatchTransOrderDetail>  selectProjectNotSuccessByProjectId(@Param("projectId") Long projectId);


    List<RefundResultDTO> selectOrderDetailSuccess(@Param("list") List<String> batchNos );

    List<RefundResultDTO> selectOrderDetailOneSuccess(String batchNo );

    List<BatchTransOrderDetail> selectOrderDetailOneSuccessNewer(String batchNo );
}